All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.naming.directory.ModificationEnumeration

java.lang.Object
   |
   +----java.naming.directory.ModificationEnumeration

public class ModificationEnumeration
extends Object
implements Enumeration, Serializable
This represents an ordered list of modification items.

See Also:
ModificationItem

Constructor Index

 o ModificationEnumeration()

Method Index

 o append(int, Attribute)
Appends a new modification to this modification enumeration.
 o getModificationItemCount()
Returns the number of modifications in this enumeration.
 o hasMoreElements()
Determines whether there are any items left to enumerate.
 o next()
Returns the next modification item in this enumeration.
 o nextElement()
Returns the next modification item in this enumeration.

Constructors

 o ModificationEnumeration
 public ModificationEnumeration()

Methods

 o append
 public void append(int mod_op,
                    Attribute attr)
Appends a new modification to this modification enumeration.

Parameters:
mod_op - Modification to apply. It must be one of DSContext.ADD_ATTRIBUTE DSContext.REPLACE_ATTRIBUTE DSContext.DELETE_ATTRIBUTE
attr - Attribute to use for modification.
 o next
 public ModificationItem next()
Returns the next modification item in this enumeration. If this is the first invocation of next() or nextElement(), returns the item at the beginning of the enumeration.

Returns:
The next modification item in this enumeration.
 o hasMoreElements
 public boolean hasMoreElements()
Determines whether there are any items left to enumerate.

Returns:
true if there are more items to enumerate; false otherwise.
 o nextElement
 public Object nextElement()
Returns the next modification item in this enumeration. If this is the first invocation of next() or nextElement(), returns the item at the beginning of the enumeration.

Returns:
The next modification item in this enumeration.
 o getModificationItemCount
 public int getModificationItemCount()
Returns the number of modifications in this enumeration.

Returns:
The number of modifications in this enumeration.

All Packages  Class Hierarchy  This Package  Previous  Next  Index